﻿import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/announcement/` + url, ...arg)

/**
 * 公告Api接口管理器
 *
 * @author superAdmin
 * @date 2024-10-22 18:37:14
 **/

 export default {
    // 获取公告分页
    announcementPage(data) {
       return request('page', data, 'get')
    },
    // 获取公告列表
    announcementList(data) {
       return request('list', data, 'get')
    },
    // 提交公告表单 edit为true时为编辑，默认为新增
    submitForm(data, edit = false) {
       return request(edit ? 'edit' : 'add', data)
    },
    // 获取公告详情
    announcementDetail(data) {
       return request('detail', data, 'get')
    },
    // 删除公告
    announcementDelete(data) {
       return request('delete', data)
    },
    // 公告学校id选择器
    announcementFkBuSchoolSelector(data) {
       return request('fkBuSchoolSelector', data,'get')
    },
}

